/*
 * @Description: 检测计划设置字典及枚举
 * @Author: Rfan
 * @Date: 2022-10-13 18:39:23
 * @LastEditTime: 2023-03-04 14:21:58
 */

/**
 * 接收方式枚举
 */
export enum EnumReceiveTypes {
  // 1.	条目与原文导入
  // 2.	光盘格式包导入
  // 3.	SIP格式包导入
  // 4.	DBF数据库导入
  // 5.	ZIP数据库导入

  Excel = 1,
  CD,
  SIP,
  DBF,
  ZIP
}
// 接收方式列表
export const receiveTypeList = [
  { id: EnumReceiveTypes.Excel, name: '条目与原文' },
  { id: EnumReceiveTypes.CD, name: '光盘格式包' },
  { id: EnumReceiveTypes.SIP, name: 'SIP格式包' },
  { id: EnumReceiveTypes.DBF, name: 'DBF数据库' },
  { id: EnumReceiveTypes.ZIP, name: 'ZIP格式包' }
];

/**
 * 接收类型枚举
 */
export enum EnumReceiveWays {
  // 1.	电子档案接收
  // 2.	数字化副本接收
  // 3.	数据资源接收
  // 4.	政府公开信息接收
  // 5.	数据库接收

  ElectronicRecord = 1,
  DigitalCopy,
  DigitalResource,
  Public,
  DB
}
// 接收类型列表
export const receiveWaysList = [
  {
    id: EnumReceiveWays.ElectronicRecord,
    name: '电子档案接收',
    types: [EnumReceiveTypes.Excel, EnumReceiveTypes.CD, EnumReceiveTypes.SIP]
  },
  {
    id: EnumReceiveWays.DigitalCopy,
    name: '数字化副本接收',
    types: [EnumReceiveTypes.Excel, EnumReceiveTypes.CD, EnumReceiveTypes.SIP]
  },
  { id: EnumReceiveWays.DigitalResource, name: '数据资源接收', types: [EnumReceiveTypes.Excel] },
  { id: EnumReceiveWays.Public, name: '政府公开信息接收', types: [EnumReceiveTypes.Excel] },
  { id: EnumReceiveWays.DB, name: '数据库接收', types: [EnumReceiveTypes.DBF] }
];

// 批次状态列表
export const stateList = [
  { id: 0, name: '待上传' },
  { id: 1, name: '待入库' },
  { id: 2, name: '入库失败' },
  { id: 3, name: '已入库' },
  { id: 4, name: '已撤回' }
];
